package com.dashu.base.Mock;


import com.dashu.base.api.device.DeviceStatus;
import com.dashu.base.api.device.SY.SYParkDeviceUpApi;
import com.dashu.base.bean.device.park.ParkBaseResp;
import com.dashu.base.bean.device.park.resp.ParkDeviceComparedResp;
import com.dashu.base.bean.device.park.resp.ParkDeviceHeartResp;

public class SYParkingUpMock<T> implements SYParkDeviceUpApi<T> {
    /**
     * 设备心跳
     *
     * @param resp 组装数据
     * @param msg  原始数据
     * @return 返回
     */
    public ParkBaseResp<T> heart(ParkDeviceHeartResp resp, String msg) {
        ParkBaseResp baseResp = new ParkBaseResp<T>();
        baseResp.setMsg_en(DeviceStatus.CALL_BACK_NULL_EN);
        baseResp.setMsg(DeviceStatus.CALL_BACK_NULL);
        baseResp.setStatus(DeviceStatus.CALL_BACK_NULL_STATUS);

        return baseResp;
    }

    /**
     * 设备人脸识别
     *
     * @param resp 组装数据
     * @param msg  原始数据
     * @return 返回
     */
    public ParkBaseResp<T> compared(ParkDeviceComparedResp resp, String msg) {
        ParkBaseResp baseResp = new ParkBaseResp<T>();
        baseResp.setMsg_en(DeviceStatus.CALL_BACK_NULL_EN);
        baseResp.setMsg(DeviceStatus.CALL_BACK_NULL);
        baseResp.setStatus(DeviceStatus.CALL_BACK_NULL_STATUS);

        return baseResp;
    }
}
